﻿using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Logging;
using System;
namespace Zeus.Mvc.ConsoleHost.Test
{
    class Program
    {
        static void Main(string[] args)
        {


            WebHost.CreateDefaultBuilder()
                 .ConfigureLogging(LoggingBuilder =>
                 {
                     LoggingBuilder.AddFilter((logLevel) =>
                     {

                         if (logLevel >= LogLevel.Error)
                         {
                             return true;
                         }
                         return false;
                     });
                 })
                 .UseUrls("http://*:5000")
                 .UseStartup<Startup>()
                 .UseKestrel()
                 .Build()
                 .Run();
        }
    }
}
